package top.chj.day18.genericity.zonghe;

/**
 * @Auther:小陈的Java
 */
public class Demo3<A,B> {
    private int id;
    private A a;
    private B b;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }
    public static <E> E method(E e){
        System.out.println(e);
        return e;
    }

    public static void main(String[] args) {
        Demo3<Integer,Double> admin = new Demo3<>();
        admin.setA(13);
        admin.setB(2.43);
        System.out.println(Demo3.method(45.2));
    }
}
